and authorize user accounts for testing in MySQL to test the PHP connection database:PHP Connection Database test:
[Email protected] conf.d]# cd/var/www/vhost1/[[email protected] vhost1]# lsIndex.html[Email protected] vhost1]# mv index.html index.php[Email protected] vhost1]# vim index.phpThis is Vhost ' s homepage~$conn = mysql_connect (' 172.16.68.1 ', ' Chenliang ', ' 123456 ');if ($conn)echo "Connect successful.";Elseecho "Connect failed.";?>Test results:
4. Deploy the applica
Before building WordPress blog system and discuz! forum system, we need to prepare the lamp environment in CentOS.Now take CentOS 6 as an example to demonstrate its process.Lamp environment =linux+apche+mysql+phpUse Yun to install apche+mysql+php in the installed CentOS 6.7 , and enter the following command at the command line:~]# yum-y install httpd mysql mysql-server php php-mysql postgresql postgresql-se
]# lsIndex.html[Email protected] vhost]# mv index.html index.php[Email protected] vhost]# vim index.phpThis is httpd-2.4 vhost ' s homepage.~~~~ $conn = mysql_connect (' 172.16.72.2 ', ' Chenliang ', ' 123456 ');if ($conn)echo "Connect successful.";Elseecho "Connect failed.";?>
In the server database, first authorize a user Chenliang, which is used for database connection testing:The test results are as follows: The connection to the database succeeds4. Deploy the application:First, the
One: Release Forum Discuz:1. Configure the database:Mysql-uroot-p123123mysql> CREATE DATABASE Bbsdb;Mysql> Grant all on bbsdb.* to ' Runbbs ' @ ' localhost ' identified by ' 123123 ';mysql> flush Privileges;Mysql> quit2. Download Discuz and publish:Lftp 192.168.100.100Lftp 192.168.100.100:~> CD tools/Lftp 192.168.100.100:/tools> Get Discuz_7.2_full_sc_utf8.zip4704761 bytes TransferredLftp 192.168.100.100:/tools> byeUnzip discuz_7.2_full_sc_utf8.zip-d
Does the wordpress editor support code writing? There is no function for inserting code in the csdn Forum editor ??? Does the wordpress editor support code writing? Nbsp; there is no csdn Forum editor code insertion function ??? ------ Solution ---------------------- do you want to compile plugins
Does the wordpress editor support code writing? Does the csdn Forum provide the ability to insert code in the editor? Does the wordpress editor support code writing? There is no function for inserting code in the csdn Forum editor ???
Reply to discussion (solution)
Yes? Plugins
Yes? Plugins
Plug-ins can be i
Build WordPress Blog system and discuz! forum system in httpd-2.2 and http-2.4 respectivelyOneHere I use centos6.7 and centos7.2 to operate. Before building, the lamp environment needs to be built beforehand.The so-called lamp environment refers to Linux, Apache (httpd), MySQL, PHPWhen you are done, turn on httpd and MySQL services.The index.php file is then created under the/var/www/html directory. Test PH
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.